fd012ef3a1d31d84e3d1e843e93bef6ed5ff2b73,src/leola/frontend/parsers/ChainedArrayAccessExprParser.java,ChainedArrayAccessExprParser,parse,#Token#,50
Before Change
Expr index = (Expr)new ExprParser(this).parse(token);
// Look for the matching ] token.
token = currentToken();
if (token.getType() == LeolaTokenType.RIGHT_BRACKET) {
token = nextToken(); // consume the ]
}
else {
throwParseError(token, LeolaErrorCode.MISSING_RIGHT_BRACKET);
}
Expr expr = null;
After Change
Expr index = (Expr)new ExprParser(this).parse(token);
// Look for the matching ] token.
token = expectTokenNext(currentToken(), LeolaTokenType.RIGHT_BRACKET, LeolaErrorCode.MISSING_RIGHT_BRACKET);
Expr expr = null;